package com.pureut.order.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

/***
 * 委外订单物料明细表 实体
 * Author:C
 * Date:2022/12/02 11:35
 * @DESC
 */
@Data
@TableName("subcontracting_order_material_detail")
@Accessors(chain = true)
public class SubcontractingOrderMaterialDetail {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private long id;

    /**
     * 物料id
     */
    private long materialId;

    /**
     * 委外订单id
     */
    private long subcontractingOrderId;

    /**
     * BOM编码
     */
    private String bomCode;

    /**
     * 需求量
     */
    private String warehouseWeight;

    /**
     * 单位
     */
    private int materialUnit;

    /**
     * bomid
     */
    private long bomId;

    /**
     * 占比
     */
    private double bomDetailDosage;

    /**
     * 物料编码
     */
    private String materialCode;

    /**
     * 已出库量
     */
    private double outWeight;

    /**
     * 物料类型
     */
    private int materialType;
}
